Vendor-Specified License Manager Identification String

To uniquely identify the License Manager, you can set unique License Manager information—a string consisting of up to 50 characters.

In case of standalone licensing, since the License Manager module is part of the licensing library itself, there is no need to uniquely identify the License Manager by setting the License Manager information.

Executables to Rebuild

The License Manager executable needs to be rebuild. Refer to the How to Use the custom32.mak File?

Description 

A customizable API function, VLSsetServerInfo, is provided to allow you to customize the License Manager by setting the vendor-specific information in the License Manager. This information can be returned to the client using the VLSgetServInfo function.

Function Prototype

LSERV_STATUS VLSsetServerInfo
(
   char  **vendorInfo 
);

Returns

>Returns LSERV_STATUS_SUCCESS on success.

>Returns non-zero on failure.

Parameter

Description

vendorInfo

An OUT parameter.

A pointer to string of up to 50 characters to write to License Manager as identification.

Steps to Perform 

> Create the VLSsetServerInfo function.

> Update the VENDOR_INFO_OBJS variable in the custom32.mak file.

Follow the build procedure specified in Build Procedure.

Code Snippet

LSERV_STATUS VLSsetServerInfo
(
   char  **vendorInfo /* OUT */
)
{
   static char* vendor_info_str = /* TODO: add the server identification string here */;
   if (vendorInfo == NULL)
   {
      return 1; /* failure */
   }
   *vendorInfo = vendor_info_str;
   return LSERV_STATUS_SUCCESS;
}